<?php
/**
 * 资产包尽调报告——2.流转、前期处置及维护情况（编辑）
 * User: zhoa shou qiang
 * Date: 2018/1/11 0011
 * Time: 09:19
 */
?>
<style>
	table tr td {
		border-top: none!important;
	}
</style>


<div class="table-responsive pull-left">
    <form name="initation_transfer_history" action="">
        <table class="table">
            <thead>
            <tr>
                <th class="">
                    <input type="checkbox" name="" id="checkboxs" checked ><!--style="width: auto;"-->
                </th>
                <th class="text-center">转让日期</th>
                <th class="text-center">转让方-受让方</th>
                <th class="text-center">转让内容</th>
                <th class="text-center">备注</th>
                <th class="text-center"> &nbsp&nbsp&nbsp&nbsp</th>
            </tr>
            </thead>
            <tbody class="maintenance-tbody">

            <?PHP
            $historyList = '';
            if (!empty($list) && is_array($list)) {
                foreach ($list as $val) {
                    $historyList .= '
                    <tr data-order="' . $val['order'] . '">
                        <td width="5%"><input type="checkbox" name="ids[]" value="' . $val['id'] . '" checked></td>
                        <td width="15%"><input type="text" class="transfer_date" name="PackageTransferHistory[transfer_date][]" value="' . $val['transfer_date'] . '"></td>
                        <td width="15%"><input type="text" class="transfer" name="PackageTransferHistory[transfer][]" value="' . $val['transfer'] . '" placeholder="如：信达—中信"></td>
                        
                        <td width="25%"><textarea class="contents form-control textarea-edit" style="width: 260px;" name="PackageTransferHistory[content][]" >' . $val['content'] .'</textarea></td>
                        <td width="25%"><textarea class="remark form-control textarea-edit" style="width: 260px;" name="PackageTransferHistory[remark][]" >' . $val['remark'] .'</textarea></td>
                        
                        <input type="hidden" name="PackageTransferHistory[id][]" value="' . $val['id'] . '">
                        <input type="hidden" name="PackageTransferHistory[order][]" value="' . $val['order'] . '">
                        <td class="btn-addpop-td" width="15%">
                            <button type="button" data-id="' . $val['id'] . '" class="btn pull-right btn-pop btn-addpop initation_delete_transfer_history">删除</button>
                            <button type="button" class="btn pull-right btn-add btn-addpop initation_add_transfer_history">添加</button>
                        </td>
                    </tr>';
                }
                echo $historyList;
            } /*else {
                echo '<tr data-order="0">
                        <td><input type="checkbox" name="ids[]" value="0" checked></td>
                        <td><input type="text" class="transfer_date" name="PackageTransferHistory[transfer_date][]" value=""></td>
                        <td><input type="text" class="transfer" name="PackageTransferHistory[transfer][]" value="" placeholder="如：信达—中信"></td>
                        <td><input type="text" class="contents" name="PackageTransferHistory[content][]" value=""></td>
                        <td><input type="text" class="remark" name="PackageTransferHistory[remark][]" value=""></td>
                            <input type="hidden" name="PackageTransferHistory[id][]" value="">
                            <input type="hidden" name="PackageTransferHistory[order][]" value="">
                        <td class="btn-addpop-td">
                            <button type="button" data-id="0" class="btn pull-right btn-pop btn-addpop initation_delete_transfer_history">删除</button>
                            <button type="button" class="btn pull-right btn-add btn-addpop initation_add_transfer_history">添加</button>
                        </td>
                    </tr>';
            }*/
            ?>

            <!--<td><input type="text" class="contents" name="PackageTransferHistory[content][]" value="' . $val['content'] . '"></td>
            <td><input type="text" class="remark" name="PackageTransferHistory[remark][]" value="' . $val['remark'] . '"></td>
            -->



            </tbody>
        </table>
    </form>
</div>

<!--<div class="warning clearfix">
    <img src="/image/officeHall/uploadAssetPackage/warning.png" class="pull-left">
    <span class="pull-left">按照转让日期先后顺序填写</span>
</div>-->
<!-- 结束按钮 -->
<form class="form-horizontal  form-bootom">
    <div class=" btns">
        <button type="button"
                class="maintenance-btn-sav btn btn-primary btns-primary-save pull-right btns-primary maintenance-btn initation_save_transfer_history">保存
        </button>
        <button type="button"
                class="maintenance-btn-del btn btn-default btns-primary-del pull-right btns-primary maintenance-btn initation_cancel_transfer_history">
            取消
        </button>
    </div>
</form>
